/**
 * 
 */
package org.chengsen.config;

import org.chengsen.dao.HibernateUserDAOImpl;
import org.chengsen.dao.UserDAO;
import org.chengsen.service.HelloService;
import org.chengsen.service.HelloServiceImpl;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;

/**
 * 使用注解 进行配置
 * 
 * @author Jason.zhang
 * 
 */
@Configuration
@Import(DataSourceConfig.class)
public class AppConfig {

	@Bean(name = "helloService")
	public HelloService helloService() {
		return new HelloServiceImpl();
	}

	@Bean(name = "userDAO")
	public UserDAO birthdayDAO() {
		return new HibernateUserDAOImpl();
	}
}
